#!/bin/bash
reset
echo "Compiling the file"
g++ -lm -lcrypt -O2 $1

if [ $? -eq 0 ] 
then
echo "Compilation Successful"
echo "Running the file"
./a.out < input
echo "Execution Complete"
fi